package com.hc.dfs.handle;

import java.util.List;

import com.hc.dfs.entities.flow.UnsignedNode;
import com.hc.dfs.service.common.Page;
import com.hc.dfs.service.internet.Service;

/** 
 * @author 王洪胜  E-mail:  
 * @version 创建时间：2013-3-4 下午1:39:44
 * 
 * 类说明：
 *
 */
public class GetSignData {

	public Service service = new Service();
	public List<UnsignedNode> dataList;
	
	public  GetSignData(int pageId){
		requestData(pageId);
	}
	//通过网络请求数据
	public void requestData(int pageId){
		switch (pageId) {
		case 0:
			Page p = new Page();
			p.setPage(1);
			p.setPageSize(10);
			try {
				dataList = service.getServiceApi().getUnsignedNodes(61, p);
			} catch (Exception e) {
				e.printStackTrace();
			}
			break;
		case 1:
			Page p1 = new Page();
			p1.setPage(1);
			p1.setPageSize(10);
			try {
				dataList = service.getServiceApi().getUnsignedNodes(61, p1);
			} catch (Exception e) {
				e.printStackTrace();
			}
			break;
		case 2:
			Page p2 = new Page();
			p2.setPage(1);
			p2.setPageSize(10);
			try {
				dataList = service.getServiceApi().getUnsignedNodes(61, p2);
			} catch (Exception e) {
				e.printStackTrace();
			}
			break;

		default:
			break;
		}
	}
	
	//获取数据
	public List<UnsignedNode> getDataList(){
		return dataList;
	}
}
